
package com.funo.government.info.view;

import android.app.Activity;
import android.os.Bundle;

import com.funo.government.info.MainApplication;

public class BaseActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        MainApplication ma = (MainApplication) getApplicationContext();
        ma.addActivity(this);
    }

    @Override
    protected void onDestroy() {
        MainApplication ma = (MainApplication) getApplicationContext();
        ma.removeActivity(this);

        super.onDestroy();
    }
}
